package require SOAP 



SOAP::create addGroup \
	-uri "org.jma.app.ewisdom.services.SrvGroupManager" \
	-proxy "http://localhost:7042/ewisdom" \
	-params { "groupName" "string" "description" String }
	
	
SOAP::create joinUserToGroup\
	-uri "org.jma.app.ewisdom.services.SrvGroupManager" \
	-proxy "http://localhost:7042/ewisdom" \
	-params { "groupName" "string" "userName" String }

SOAP::create getGroups\
	-uri "org.jma.app.ewisdom.services.SrvGroupManager" \
	-proxy "http://localhost:7042/ewisdom"
	
addGroup \
-headers {SSAuth-userName root SSAuth-password root SSauth-initiateSession true SSauth-timeout 120000000}\
readers "Readers group"


#maintain the session

	
set session [lindex [SOAP::getHeaders addGroup] 1]

joinUserToGroup -headers $session readers root

getGroups -headers [lappend session SSauth-terminateSession  true]


